package com.springframework.DI_t.object_DI.bean;

public class Emp {
    private String deptName;
    private String name;
    private int age;
    public void info(){
        System.out.println("部门名称："+deptName+"，员工名："+name+"，员工年龄："+age);
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
